<?php

class TricksType extends AppModel{
    
    public $hasMany = array(
        'TricksTypesSpin' => array(
            'foreignKey' => 'tricks_types_id',
            'order' => 'TricksTypesSpin.spin ASC'
        )
    );
    
    public function getTricksType($type, $options){
        $data = $this->find($type, $options);
        return $data;
    }
    
    public function delete($id){
        return parent::delete($id);
    }
}
?>
